﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;

namespace Aliyeye.Car.Net.WebService
{
    /// <summary>
    /// Summary description for ArchivesService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class ArchivesService : BaseWebService
    {
        private BLL.Archives Bll = new BLL.Archives();

        [SoapHeader("soapHeader")]
        [WebMethod]
        public int Add(Model.Archives model)
        {
            return Bll.Add(model);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Update(Model.Archives model)
        {
            return Bll.Update(model);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Delete(int Id)
        {
            return Bll.Delete(Id);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public Model.Archives GetModel(int Id)
        {
            return Bll.GetModel(Id);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetListCondition(string strWhere)
        {
            return Bll.GetList(strWhere);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetList()
        {
            return Bll.GetList();
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxColor()
        {
            return Bll.GetList("颜色");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxBrand()
        {
            return Bll.GetList("厂牌");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxCar()
        {
            return Bll.GetList("车型");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxSit()
        {
            return Bll.GetList("座位数");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxCarX()
        {
            return Bll.GetList("准驾车型");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxIllegal()
        {
            return Bll.GetList("违章类型");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxCompany()
        {
            return Bll.GetList("修理厂");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxMakeType()
        {
            return Bll.GetList("维修类型");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxQx()
        {
            return Bll.GetList("权限类型");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxMT()
        {
            return Bll.GetList("主管单位");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxPay()
        {
            return Bll.GetList("付款方式");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet ComBoxCarkind()
        {
            return Bll.GetList("车种");
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public float GetPointsRate()
        {
            return Bll.GetPointsRate();
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool UpdatePointRate(string strPointRate)
        {
            return Bll.UpdatePointRate(strPointRate);
        }
    }
}
